﻿@model GameSchoolApplication.Models.Assignment
<input type="hidden" id="navString" value="ass" />
<input type="hidden" id="ID" value="@Model.assignmentID" />

<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


@Html.ActionLink("Skoða skil / Gefa einkunn", "AssignmentSubmissionsDisplay", new { assignmentID = Model.assignmentID })


@using (Html.BeginForm("uploadAss", "Assignment", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Verkefni</legend>

        @Html.HiddenFor(model => model.assignmentID)
        @Html.HiddenFor(model => model.lvlID)

        <div class="editor-label">
            <label>Titill</label>
        </div>
        <div class="editor-field">
            @Model.name
        </div>

        <div class="editor-label">
            <label>Verkefnalýsing</label>
        </div>
        <div class="editor-field">
            @Model.assDescription
        </div>

        <div class="editor-label">
            <label>Skilafrestur</label>
        </div>
        <div class="editor-field">
            @Model.deadLine
        </div>

        <div class="editor-label">
            <label>Stig</label>
        </div>
        <div class="editor-field">
            @Model.reward
        </div>

        <div class="editor-label">
            @Html.HiddenFor(model => model.allowComments)
        </div>

    
   
    <input type="file" name="file" />
    <input type="submit" value="Senda" />
       </fieldset>
}

<div>
    @Html.ActionLink("Aftur í Verkefnalista", "Index")
</div>

